﻿using com.guojin.core.io.message;
using com.guojin.core.io;
using System;

namespace com.guojin.mj.net.message.login
{
    public class AddAdmin : Message
    {
        public static int TYPE = 7;
        public static int ID = 116;

        /**编号*/
        private int id;
        /**俱乐部id*/
        private int clubid;
        public static AddAdmin Create(int _id, int _club)
        {
            AddAdmin sa = new AddAdmin();
            sa.id = _id;
            sa.clubid = _club;
            return sa;
        }
        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }

        public int Clubid
        {
            get
            {
                return clubid;
            }

            set
            {
                clubid = value;
            }
        }

        public void decode(Input _in)
        {

        }

        public void encode(Output _out)
        {
            _out.writeInt(id);
            _out.writeInt(Clubid);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "";
        }
    }
}